HipAssetLoadTask

Undocumented in source.

Constructors

this
this(string path, string name, HipAsset asset, const(ubyte)[] extraData, string fileRequesting, size_t lineRequesting)
Undocumented in source.

Members

Functions

addOnCompleteHandler
void addOnCompleteHandler(void delegate(HipAsset) onComplete)
Undocumented in source. Be warned that the author may not have intended to support it.
addOnCompleteHandler
void addOnCompleteHandler(void delegate(string) onComplete)
Undocumented in source. Be warned that the author may not have intended to support it.
asset
HipAsset asset()
Undocumented in source. Be warned that the author may not have intended to support it.
asset
HipAsset asset(HipAsset newAsset)
Undocumented in source. Be warned that the author may not have intended to support it.
await
void await()
Undocumented in source. Be warned that the author may not have intended to support it.
hasFinishedLoading
bool hasFinishedLoading()
Undocumented in source. Be warned that the author may not have intended to support it.
into
void into(string*[] variables)
Undocumented in source. Be warned that the author may not have intended to support it.
into
void into(void* function(HipAsset asset) castFunc, HipAsset*[] variables)
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
result
HipAssetResult result()
Undocumented in source. Be warned that the author may not have intended to support it.
result
HipAssetResult result(HipAssetResult newResult)
Undocumented in source. Be warned that the author may not have intended to support it.
update
void update()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_asset
HipAsset _asset;
Undocumented in source.
_result
HipAssetResult _result;
Undocumented in source.
error
string error;
Undocumented in source.
name
string name;
Undocumented in source.
path
string path;
Undocumented in source.
worker
HipWorkerThread worker;
Undocumented in source.

Inherited Members

From IHipAssetLoadTask

result
HipAssetResult result()
Undocumented in source.
result
HipAssetResult result(HipAssetResult result)

Sets the result. Should not exist in user code.

asset
HipAsset asset()
Undocumented in source.
asset
HipAsset asset(HipAsset asset)

Sets the asset. Should not exist in user code.

hasFinishedLoading
bool hasFinishedLoading()
Undocumented in source.
await
void await()

Awaits the asset load process. Can't be used on WebAssembly export

into
void into(void* function(HipAsset asset) castFunc, HipAsset*[] variables)

When the variables finish loading, it will also assign the asset to the variables

into
void into(T*[] variables)
Undocumented in source. Be warned that the author may not have intended to support it.
into
void into(string*[] variables)
Undocumented in source.
addOnCompleteHandler
void addOnCompleteHandler(void delegate(HipAsset) onComplete)

May be executed instantly if the asset is already loaded.

addOnCompleteHandler
void addOnCompleteHandler(void delegate(string) onComplete)
Undocumented in source.
update
void update()

Executs a step on the loading task. Call asset when state is loaded

into
void into(T function(string) convertFunction, T*[] variables)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta